/*
 * 点赞
 * targetId 点赞的目标id
 * type 点赞类型 1问答点赞 2问答评论点赞
 * obj 当前标签对象
 */
function praiseArticle(articleId) {
	$.ajax({
		url: "/ajax/article/update/praiseCount.json",
		data: {"id": articleId},
		type: "post",
		dataType: "json",
		async: true,
		success: function (result) {
			if (result.code === 0) {
				//点赞效果
				var _dznum = $(".dz-btn").siblings(".dz-num");
				_dznum.stop().animate({"opacity": "0", "bottom": "90px"}, 1000, function () {
					_dznum.css({"opacity": "1", "bottom": "-24px"})
				});
				var praiseNum = parseInt($("#praiseCount").html());
				$(".praiseCount").html(praiseNum + 1);
				layer.msg('恭喜您，点赞成功！', {icon: 1});
			} else {
				layer.msg(result.msg, {icon: 2});
			}
		}
	})
}
